package com.servlet;

import java.io.IOException;
import java.lang.reflect.Method;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.model.Workstation;
import com.service.ProductService;
import com.service.WorkstationService;



@WebServlet("/WorkstationSelect")
public class WorkstationSelect extends HttpServlet{
	
	
	public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		WorkstationService stationService=new WorkstationService();
		response.setContentType("text/html");
		response.setCharacterEncoding("utf-8");
		List<Workstation> stations = stationService.selectWorkstation();
		
		
		request.setAttribute("stations",stations);
		request.getRequestDispatcher("workstationmanage.jsp").forward(request, response);
	}
}
